package com.woniuxy.main.service.imp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.main.mapper.LessonMapper;
import com.woniuxy.main.pojo.Lesson;
import com.woniuxy.main.service.LessonService;

import lombok.Data;
@Data
@Service
@Transactional
public class LessonServiceImp implements LessonService{
	@Resource
	private LessonMapper lessonMapper;

	@Override
	public int insertLesson(int cid) {
		
		return lessonMapper.insertLesson(cid);
	}

	@Override
	public int updateLesson(Lesson lesson) {
		
		return lessonMapper.updateLesson(lesson);
	}

}
